package com.biz.primus.ms.depot.dao.po;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * FreightTemplate
 *
 * @author JKLiues
 * @date 2017年11月03日
 */
@Getter
@Setter
@Entity
@Table(name = "tb_depot_freight")
public class FreightTemplate extends BaseEntity {
    private static final long serialVersionUID = 6509295274089430726L;
    /**
     * 模板编号
     */
    @Column(length = 10)
    private String freightCode;

    /**
     * 物流公司
     */
    @Column(length = 20)
    private String logisticCompany;

    /**
     * 简要描述
     */
    @Column(length = 200)
    private String description;

    /**
     * 生效时间
     */
    private Timestamp beginDate;

    /**
     * 失效时间
     */
    private Timestamp endDate;

    /**
     * 是否可用
     */
    @Column
    @Enumerated(EnumType.STRING)
    private CommonStatus status = CommonStatus.ENABLE;

    /**
     * 满  免运费
     */
    private Integer freeCost;
    /**
     * 首重(g)
     */
    private Integer baseWeight;

    /**
     * 续重(g)
     */
    private Integer stepWeight;

    /**
     * 首费(分）
     */
    private Integer baseCost;

    /**
     * 续费(分)
     */
    private Integer stepCost;
}